package cn.royan.fl.controllers.commands 
{
	import cn.royan.fl.proxys.PacketReceiveProxy;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * ...
	 * @author RoYan
	 */
	public class PacketReceiveCommand extends SimpleCommand 
	{
		override public function execute(notification:INotification):void 
		{
			if ( !facade.hasProxy( PacketReceiveProxy.NAME ) )
				facade.registerProxy( new PacketReceiveProxy() );
			var packetRecevieProxy:PacketReceiveProxy = facade.retrieveProxy( PacketReceiveProxy.NAME ) as PacketReceiveProxy;
				packetRecevieProxy.parse( notification.getBody() as String );
		}
	}

}